package com.ruoyi.project.bajiaostar.jbhWetrademark.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.bajiaostar.jbhWetrademark.mapper.JbhWetrademarkMapper;
import com.ruoyi.project.bajiaostar.jbhWetrademark.domain.JbhWetrademark;
import com.ruoyi.project.bajiaostar.jbhWetrademark.service.IJbhWetrademarkService;
import com.ruoyi.common.utils.text.Convert;

/**
 * 商标库Service业务层处理
 * 
 * @author 写烧糊
 * @date 2024-07-18
 */
@Service
public class JbhWetrademarkServiceImpl implements IJbhWetrademarkService 
{
    @Autowired
    private JbhWetrademarkMapper jbhWetrademarkMapper;

    /**
     * 查询商标库
     * 
     * @param id 商标库ID
     * @return 商标库
     */
    @Override
    public JbhWetrademark selectJbhWetrademarkById(Long id)
    {
        return jbhWetrademarkMapper.selectJbhWetrademarkById(id);
    }

    /**
     * 查询商标库列表
     * 
     * @param jbhWetrademark 商标库
     * @return 商标库
     */
    @Override
    public List<JbhWetrademark> selectJbhWetrademarkList(JbhWetrademark jbhWetrademark)
    {
        return jbhWetrademarkMapper.selectJbhWetrademarkList(jbhWetrademark);
    }

    /**
     * 新增商标库
     * 
     * @param jbhWetrademark 商标库
     * @return 结果
     */
    @Override
    public int insertJbhWetrademark(JbhWetrademark jbhWetrademark)
    {
        return jbhWetrademarkMapper.insertJbhWetrademark(jbhWetrademark);
    }

    /**
     * 修改商标库
     * 
     * @param jbhWetrademark 商标库
     * @return 结果
     */
    @Override
    public int updateJbhWetrademark(JbhWetrademark jbhWetrademark)
    {
        return jbhWetrademarkMapper.updateJbhWetrademark(jbhWetrademark);
    }

    /**
     * 删除商标库对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteJbhWetrademarkByIds(String ids)
    {
        return jbhWetrademarkMapper.deleteJbhWetrademarkByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除商标库信息
     * 
     * @param id 商标库ID
     * @return 结果
     */
    @Override
    public int deleteJbhWetrademarkById(Long id)
    {
        return jbhWetrademarkMapper.deleteJbhWetrademarkById(id);
    }
}
